﻿using System;

namespace Oscilloscope.ChannelBuffer
{
	// Token: 0x02000022 RID: 34
	internal class ChannelBufferDataIteratorFactory
	{
		// Token: 0x0600011F RID: 287 RVA: 0x000093E0 File Offset: 0x000075E0
		private ChannelBufferDataIteratorFactory()
		{
		}

		// Token: 0x06000120 RID: 288 RVA: 0x000093E8 File Offset: 0x000075E8
		public static IChannelBufferDataIterator ChannelDataBufferIterator(SignalType signalType)
		{
			if (signalType == SignalType.AnalogSigned || signalType == SignalType.AnalogUnsigned)
			{
				return new AnalogChannelBufferDataIterator();
			}
			if (signalType == SignalType.DigitalSingle)
			{
				return new SingleDigitalChannelBufferDataIterator();
			}
			if (signalType == SignalType.DigitalMultiple)
			{
				return new MultipleDigitalChannelBufferDataIterator();
			}
			throw new ArgumentException();
		}
	}
}
